<template>
  <div class="myMonitoring">
    <div class="rightBox">
      <div class="btn_group">
        <button :class="{ active: input_btn == '直播监测' }" @click="input_btn = '直播监测'">直播监测</button>
        <button :class="{ active: input_btn == '账号监测' }" @click="input_btn = '账号监测'">账号监测</button>
      </div>
      <div class="rightBox-content">
        <accountMonitor v-if="input_btn == '账号监测'" />
        <liveMonitor v-if="input_btn == '直播监测'" />
      </div>
    </div>
  </div>
</template>

<script>
import accountMonitor from './accountMonitor/accountMonitorCon.vue';
import liveMonitor from './liveMonitor/liveMonitorCon.vue';
export default {
  props: [],
  data() {
    return {
      input_btn: '直播监测'
    };
  },
  components: { accountMonitor, liveMonitor },
  computed: {},
  created() {
    document.title = '直播监测-数据监测服务平台-掌上精选';
  },
  mounted() {},
  watch: {
    input_btn(val) {
      if (val == '直播监测') {
        document.title = '直播监测-数据监测服务平台-掌上精选';
      } else {
        document.title = '账号监测-数据监测服务平台-掌上精选';
      }
    }
  },
  methods: {}
};
</script>

<style lang="less" scoped>
.myMonitoring {
  box-sizing: border-box;
  display: flex;
  // min-height: 100vh;
  margin-top: @margin-num;
  margin-left: @margin-num;
  margin-right: @margin-num;
  background-color: #f1f1f1;
  .rightBox {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    height: 100%;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    border-radius: 6px;
    .btn_group {
      .active {
        background-color: #fd7f2c;
        color: #ffffff !important;
      }
      button {
        font-size: 14px;
        color: #555;
        padding-left: 23px;
        padding-right: 23px;
        height: 40px;
        background-color: #fff;
        border-radius: 4px;
        margin-right: 7px;
        font-weight: 600;
      }
      button:hover {
        color: #ff924b;
      }
    }
  }
  .rightBox-content {
    background-color: #ffffff;
    border-radius: 6px;
    // margin-top: -20px;
    margin-top: 10px;
  }
}
</style>
